﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admins/Administrator.master" AutoEventWireup="true" CodeFile="PostFriendWall.aspx.cs" Inherits="FacebookApp.Admins_PostFriendWall" %>
<%@ MasterType VirtualPath="~/Admins/Administrator.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Panel ID="pnShow" runat="server" Width="100%">
        <center>
            <asp:DataGrid ID="grdEbook" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                CellPadding="4" ForeColor="#333333" Width="600px" OnPageIndexChanged="grdEbook_PageIndexChanged"
                PageSize="10" OnItemCommand="grdEbook_ItemCommand" OnItemDataBound="grdEbook_ItemDataBound">
                <AlternatingItemStyle BackColor="White" />
                <HeaderStyle CssClass="trHeader"></HeaderStyle>
                <Columns>
                    <asp:TemplateColumn ItemStyle-CssClass="tdCenter" ItemStyle-Width="20px" ItemStyle-HorizontalAlign="Center">
                        <HeaderTemplate>
                            <asp:CheckBox ID="chkSelectAll" runat="server" AutoPostBack="False"></asp:CheckBox></HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSelect" runat="server"></asp:CheckBox></ItemTemplate>
                        <ItemStyle CssClass="tdCenter" HorizontalAlign="Center"></ItemStyle>
                    </asp:TemplateColumn>
                    <asp:BoundColumn DataField="Id" HeaderText="Id" Visible="false"></asp:BoundColumn>
                    <%--<asp:BoundColumn DataField="Image" HeaderText="Image"></asp:BoundColumn>--%>
                    <asp:TemplateColumn ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                        <HeaderTemplate>
                            Image</HeaderTemplate>
                        <ItemTemplate>
                            <asp:Image ID="Image1" ImageUrl='<%#Eval("pic_small") %>' Width="80px" Height="80px"
                                runat="server" />
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <%--<asp:BoundColumn DataField="Price" HeaderText="Price"></asp:BoundColumn>--%>
                    <asp:TemplateColumn ItemStyle-Width="200px">
                        <HeaderTemplate>
                            Tên</HeaderTemplate>
                        <ItemTemplate>
                            <%#Eval("name").ToString()%></ItemTemplate>
                    </asp:TemplateColumn>
                    <%--<asp:BoundColumn DataField="PriceNew" HeaderText="PriceNew"></asp:BoundColumn>--%>
                    <%--<asp:TemplateColumn ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center">
                        <HeaderTemplate>
                            Function</HeaderTemplate>
                        <ItemTemplate>
                            <asp:LinkButton ID="lbt1" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Id")%>'
                                CommandName="Edit" CssClass="edit" ToolTip="View/Edit">&nbsp;</asp:LinkButton>|<asp:LinkButton
                                    ID="lbt2" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Id")%>'
                                    CommandName="Delete" CssClass="delete" OnClientClick="return confirm(&quot;Bạn có muốn xóa không?&quot;)"
                                    ToolTip="Delete">&nbsp;</asp:LinkButton></ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="50px" />
                    </asp:TemplateColumn>--%>
                </Columns>
                <EditItemStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                <ItemStyle BackColor="#EFF3FB" />
                <PagerStyle BackColor="#F3F8FE" ForeColor="Blue" HorizontalAlign="Center" Mode="NumericPages" />
                <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            </asp:DataGrid>
            <asp:Button ID="btpost" Text="Đăng tường" runat="server" class="fb_invite_button"
                onclick="btpost_Click"/>
        </center>
    </asp:Panel>
</asp:Content>

